package com.example.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.Vip;
import com.example.mapper.VipDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VipServiceImpl extends ServiceImpl<VipDao, Vip>  implements  VipService {
    @Override
    @DS(value = "master1")
    public List<Vip> listVip() {
        List<Vip> list = this.list();
        return list;
    }
}
